package com.campus.pojo;

import java.util.ArrayList;
import java.util.List;

/*系统模块（菜单）*/
public class SysModule {
    private String moduleCode;  //模板编号 主键
    private String moduleName;  //模板名称
    private String modulePath;  //模块访问路径
    private String parentCode;  //父节点编号
    private int isLeaf;     //是否叶子节点
    private int sortNum;    //排序数字
    private List<SysModule> children = new ArrayList<>();
    private String parentModuleName;

    @Override
    public String toString() {
        return "SysModule{" +
                "moduleCode='" + moduleCode + '\'' +
                ", moduleName='" + moduleName + '\'' +
                ", modulePath='" + modulePath + '\'' +
                ", parentCode='" + parentCode + '\'' +
                ", isLeaf=" + isLeaf +
                ", sortNum=" + sortNum +
                ", children=" + children +
                ", parentModuleName='" + parentModuleName + '\'' +
                '}';
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public void setModuleCode(String moduleCode) {
        this.moduleCode = moduleCode;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getModulePath() {
        return modulePath;
    }

    public void setModulePath(String modulePath) {
        this.modulePath = modulePath;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public int getIsLeaf() {
        return isLeaf;
    }

    public void setIsLeaf(int isLeaf) {
        this.isLeaf = isLeaf;
    }

    public int getSortNum() {
        return sortNum;
    }

    public void setSortNum(int sortNum) {
        this.sortNum = sortNum;
    }

    public List<SysModule> getChildren() {
        return children;
    }

    public void setChildren(List<SysModule> children) {
        this.children = children;
    }

    public String getParentModuleName() {
        return parentModuleName;
    }

    public void setParentModuleName(String parentModuleName) {
        this.parentModuleName = parentModuleName;
    }

    public SysModule() {
    }
}
